package Chapter2.Comparing.c6;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class PropertyDemo {
    public static void main(String[] args) throws IOException {
        InputStream in = PropertyDemo.class.getResourceAsStream("/test.properties");
        Properties properties = new Properties();
        properties.load(in);
        String userName = (String) properties.get("username");
        System.out.println(userName);

    }
}
